package com.msb.controller;

//import com.msb.config.PersonConfig;
import com.msb.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PersonController {

    @Autowired //将person自动注入进来
    private  Person person;
    @RequestMapping("/person")
    @ResponseBody
    private String testApplication(){

        System.out.println(this.person);
        return "ok";


    }

}
